(self.webpackChunkpractice_questions=self.webpackChunkpractice_questions||[]).push([["src_pages_computer_child_three_tsx"],{1975:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return p}});var a=n("9797"),i=n("4424"),s=n("4094"),o=n("2061"),r=n("2534"),l=n("6426"),d=n("1783");let c=r.default.div`
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  flex-direction: column;
  color: var(--theme-color);
  z-index: 9999;
`,u=r.default.span`
  cursor: pointer;
  margin-bottom: 14px;
`;var p=()=>{let[e,t]=(0,o.useState)({isRead:!0,isRandom:!1,newData:[...s]}),{isRead:n,isRandom:r,newData:p}=e,m=(0,o.useCallback)(e=>{"random"===e?t(e=>{let t={...e};return e.isRandom?t.newData=[...s]:t.newData=[...(0,l.randomArray)([...s])],t.isRandom=!e.isRandom,{...t}}):"read"===e&&t(e=>({...e,isRead:!e.isRead}))},[]);return(0,a.jsxs)(i.MainLayout,{children:[(0,a.jsxs)(c,{children:[(0,a.jsx)(u,{onClick:()=>m("read"),children:n?"答题模式":"背题模式"}),(0,a.jsx)(u,{onClick:()=>m("random"),children:r?"顺序模式":"乱序模式"})]}),p.map((e,t)=>(0,a.jsx)(d.ItemsOptions,{isOnlyTrue:n,title:e.title,options:e.options,currentIndex:t+1,isRandom:!1,optionLayout:"v"},e.sort))]})}}}]);